<div class="contentBody">
    <div class="left">
    <br/>
<h2><u>Edit/Update Course</u></h2>
<br/>

<div id="updateEI" class="left">
    <form Action="<?php echo site_url('maintain_course/update')?>" Method="POST">
        <table width="580px">


             <?php foreach ($updating as $row) {
                        ?>
            <input type ="hidden" name ="courseID" value="<?php echo $row->course_id; ?>">
                        <tr>
                            <td><label>Course Name</label></td>
                            <td>:</td>
                            <td><input name="courseName" type="text" size="38px" value="<?php echo $row->course_name; ?>"></td>
                        </tr>
                        <tr>
                            <td><label>Course description</label></td>
                            <td>:</td>
                            <td><textarea name="courseDesc" rows="5" cols="30"><?php echo $row->course_description; ?></textarea></td>
                        </tr>
                        <tr>
                        <td><label>Discipline</label></td>
                        <td>:</td>
                        <td><select name="courseDisc">
                     <option value="<?php echo $row->discipline_id; ?>"><?php echo $row->discipline_name; ?></option>

                       <?php foreach($discList as $Drow){
?>

                    <option value=<?php echo $Drow->discipline_id; ?>><?php echo $Drow->discipline_name; ?></option>
<?php }
                        ?>
                     </select></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td></td>
                            <td align="left"><input name="updatecourse" value="Submit" type="submit"></td>
                        </tr>
                        
                    
                <?php }
                     ?>
        </table>
    </form>
</div>
    </div>
</div>